<script>
function validate(form)
{
	var ten =form.txtten_muc_tin.value;
	if(ten=="")
	{
		inlineMsg('txtten_muc_tin','Chưa nhập tên mục tin.',2);
		return false;
	}
	return true;
}
</script>
<?php
$ms_muc_tin=$_POST['ms_muc_tin'];//lay ten_dn tu hidden frmDLsua trong tat_ca_thanh_vien.php
$rs=mysql_query("SELECT * FROM muc_tin WHERE MS_MUC_TIN='$ms_muc_tin'");
$rw=mysql_fetch_array($rs);
$ten_muc_tin=$rw['TEN_MUC_TIN'];
$ms_loai_tin=$rw['MS_LOAI_TIN'];
?>
<div class="table">
<h2><span>Cập Nhật Mục Tin</span></h2>
</div><br />
<form name="frmsua" action="muc_tin/luu_sua_muc_tin.php" method="post" class="form" onsubmit="return validate(this)" enctype="multipart/form-data">
<table width="100%" cellpadding="0" cellspacing="0">
  <tr>
    <td width="150"><label><strong>Mã mục tin</strong></label></td>
    <td><?php  echo $ms_muc_tin ?><input type="hidden" name="ms_muc_tin" value="<?php echo $ms_muc_tin ?>"/></td>
  </tr>
  <tr>
    <td><label><strong>Tên mục tin(*)</strong></label></td>
    <td><input name="txtten_muc_tin" id="txtten_muc_tin" type="text" value="<?php echo $ten_muc_tin ?>" size="75"/></td>
  </tr>
<tr>
	<td></td>
    <td>
        <input type="submit" name="submit" id="submit" value="Cập nhật" class="button"/>
      	<input type="button" name="back" id="back" value="Trở về" onClick="location.href='index.php?noidung=dsmt';" class="button"/>
    </td>
  </tr>
</table>
</form>